/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    color: #1890ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    color: #40a9ff;
}

/* 主内容区样式 */
.main-content {
    max-width: 1000px;
    margin: 80px auto 30px;
    padding: 0 20px;
}

/* 详情内容样式 */
.message-detail {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-detail h1 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

.message-detail .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.message-detail .content {
    line-height: 1.8;
    color: #666;
}

/* 图片容器和图片样式 */
.message-detail .images {
    margin: 20px 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.message-detail .images img {
    width: 100%;
    max-width: 100%; /* 限制最大宽度 */
    height: auto; /* 自动高度 */
    max-height: 300px; /* 限制最大高度 */
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
    display: block; /* 防止图片底部有空隙 */
    margin: 0 auto; /* 居中显示 */
}

/* 图片容器样式 */
.message-detail .images > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden; /* 防止内容溢出 */
}

/* 图片悬停效果 */
.message-detail .images img:hover {
    cursor: pointer;
    transform: scale(1.02); /* 轻微放大效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 图片放大遮罩层 */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    padding: 20px;
    box-sizing: border-box;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.message-detail .files {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.message-detail .file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #666;
}

/* 评论区样式 */
.comments-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    min-height: 100px;
    resize: vertical;
}

.comment-form button {
    padding: 8px 20px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form button:hover {
    background: #40a9ff;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.comment-content {
    color: #666;
    line-height: 1.5;
} 